#include "widget.h"

#include <QApplication>
#include <QTranslator>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    QTranslator ts;
    QString appPath = QCoreApplication::applicationDirPath();//a.applicationFilePath();
    if (!ts.load(appPath + "\\lang_Chinese.qm"))
        qDebug() << "load qm failed." << appPath + "\\lang_Chinese.qm";
    a.installTranslator(&ts);
    Widget w;    
    w.show();
    return a.exec();
}
